<template>
  <div class="category">
    <div class="w">
      <div class="top">
        <h3>{{ classify.goodsCategory }}</h3>
      </div>
      <div class="bottom">
        <ItemGoods :list1="item" v-for="item in classify.child" :key="item.id"/>
        <!-- <ItemGoods :list="classify.child"/> -->
      </div>
    </div>
  </div>
</template>

<script>
import ItemGoods from "../ItemGoods";
export default {
  name: "ListGoods",
  components: {
    ItemGoods,
  },
  props:['classify'],
};
</script>

<style scoped>
.categroy {
  width: 1920px;
  height: 400px;
  background-color: #fff;
}
.w {
  width: 1200px;
  height: 100%;
  margin: 0 auto;
}
.top {
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  border-bottom: red solid 2px;
  margin-left: 10px;
}
.top h3{
  color: #000;
  font-size: 20px;
  font-family: "楷体";
  font-weight: bold;
}
.bottom {
  background-color: #fff;
  width: 100%;
  height: 360px;
  overflow: scroll;
  overflow-x: hidden;
  margin-left: 10px;
  padding: 10px 0 10px 23.5px;
}
</style>